package UMC.Web.UI;

import UMC.Web.UICell;
import UMC.Web.UIClick;
import UMC.Web.WebMeta;

public class UICMSImage extends UICell {
    public UICMSImage(String video, String src) {
        this.data = (new WebMeta().put("src", src).put("video-src", video));

    }

    public UICMSImage(WebMeta data) {
        this.data = data;
    }

    public UICMSImage(String src) {
        this.data = new WebMeta().put("src", src);
    }

    public UICMSImage click(UIClick click)
    {
        this.data.put("click", click);
        return this;
    }
    WebMeta data;

    @Override
     public WebMeta data() {
        return data;
    }

    @Override
    public String type() {
        return "CMSImage";
    }


}
